home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / puppy_red.swf / scripts / frame_9 / DoAction_2.as next >
Text File  |  2008-03-11  |  384b  |  22 lines

  1. function stgView()
  2. {
  3.    s2 = Math.floor(stg % 100 / 10);
  4.    s1 = Math.floor(stg % 10 / 1);
  5.    if(s2 > 0)
  6.    {
  7.       stgM.gotoAndStop(2);
  8.    }
  9.    else
  10.    {
  11.       stgM.gotoAndStop(1);
  12.    }
  13.    stgM.number2.gotoAndStop(s2 + 1);
  14.    stgM.number1.gotoAndStop(s1 + 1);
  15. }
  16. stop();
  17. stgView();
  18. bgs = new Sound();
  19. bgs.attachSound("bgs");
  20. bgs.start(0,999);
  21. _root.shootNum = 0;
  22.